from django.urls import path, include
from . import views
from rest_framework.routers import DefaultRouter
urlpatterns = [
    # GET /spit/5fcb6c59ee9aefc4936fa467/children/
    path('spit/<str:id>/children/',views.SplitChildrenAPIView.as_view()),
    #  /spit/{id}/collect/ PUT
    path('spit/<str:id>/collect/',views.Spitcollect.as_view()),
    # /spit/{id}/updatethumbup/
    path("spit/<str:id>/updatethumbup/",views.Spitupdatethumbup.as_view()),
]

router = DefaultRouter()
router.register('spit',views.SpitViewSet,basename='spit')
urlpatterns += router.urls
# for url in urlpatterns:
#     print(url)